package com.fnzn.entranceGuard;

import com.fnzn.entranceGuard.rest.guard.UsrUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author shixinfeng
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.fnzn.entranceGuard", "com.github.pig.common.bean"})
@EnableScheduling
public class EntranceGuardApplication {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(EntranceGuardApplication.class, args);
		//订阅有人云
		UsrUtil.SubscribeForUsername();
	}
}
